package readytest;

import java.io.*;

/**
 * Created by leeping on 2016/3/21.
 */
public class FileTest {
	public static void main(String[] args) throws Exception {

		File file = new File("d:/product/test/src/filetest/a.txt");
		BufferedWriter writer = new BufferedWriter(new FileWriter(file, true));
		writer.write("李平");
		writer.close();
		BufferedReader reader = new BufferedReader(new FileReader(file));
		String s = "";
		while ((s = reader.readLine()) != null) {
			System.out.println(s);
		}
		reader.close();


	}
}
